package com.shy.springframework.beans.factory.config;

import com.shy.springframework.beans.BeansException;
import com.shy.springframework.beans.factory.BeanFactory;

public interface AutowireCapableBeanFactory extends BeanFactory {

    /**
     * 执行BeanPostProcessor接口实现的postProcessorsBeforeInitialization方法
     * @param existingBean
     * @param beanName
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * 执行BeanPostProcessor接口实现的postProcessorsAfterInitialization方法
     * @param existingBean
     * @param beanName
     * @throws BeansException
     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;
}
